package part1;

public class Main {
    public static void main(String[] args) {
        WebsiteFactory factory = new WebsiteFactory();

        Website website = factory.getWebsite("微信");
        website.use();
        System.out.println("工厂大小：" + factory.size());

        Website website1 = factory.getWebsite("浏览器");
        website1.use();
        System.out.println("工厂大小：" + factory.size());

        Website website2 = factory.getWebsite("浏览器");
        website2.use();
        System.out.println("工厂大小：" + factory.size());
    }
}
